#ifndef SHOWTEXTWINDOW_H
#define SHOWTEXTWINDOW_H

#include <QWidget>
#include <QVector>


/**
 * @brief The ShowTextWindow class
 * 显示界面的文本区域
 */


class ShowTextWindow : public QWidget
{
    Q_OBJECT

public:
    explicit ShowTextWindow(QWidget *parent = nullptr);
    ~ShowTextWindow();
    void setRectangles(const QVector<QVector<int>>& rectangles);

protected:
    void paintEvent(QPaintEvent *event) override;

private slots:
    void updateTextWindow();

private:
    QPixmap fullScreenPixmap;
    QVector<QVector<int>> rectangles;

    void setupUI();
};


#endif // SHOWTEXTWINDOW_H
